<!--车辆销户查询-->
<template>
<div class="public-common">
    <div class="public-title">请选择车辆销户查询条件</div>
    <el-form :model="form" label-width="120px">
        <el-row>
            <el-col :span="4">
                <el-form-item label="车牌号">
                    <el-input v-model="form.carzl1"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="单位名称">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl2">
                    	<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="8">
                <el-form-item label="上户日期">
                    <el-date-picker style="width: 47%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="form.carzl3" type="date"></el-date-picker>
                    <el-date-picker style="width: 47%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="form.carzl4" type="date"></el-date-picker>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="计价器型号">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl5">
                    	<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="计价器编号">
                    <el-input v-model="form.carzl6" ></el-input>
                </el-form-item>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="4">
                <el-form-item label="原车号">
                    <el-input v-model="form.carzl7"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="车辆类型">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl8">
                    	<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="8">
                <el-form-item label="销户日期">
                    <el-date-picker style="width: 47%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="form.carzl9" type="date"></el-date-picker>
                    <el-date-picker style="width: 47%;" format="yyyy/MM/dd" value-format="yyyy/MM/dd" v-model="form.carzl10" type="date"></el-date-picker>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="车辆性质">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl11">
                    	<el-option v-for="(v,i) in item2" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="车身编号">
                    <el-input v-model="form.carzl12" ></el-input>
                </el-form-item>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="4">
                <el-form-item label="车主姓名">
                    <el-input v-model="form.carzl13"></el-input>
                </el-form-item>
            </el-col>
            <el-col :span="4">
                <el-form-item label="原车辆类型">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl14">
                    	<el-option v-for="(v,i) in item" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="8">
                <el-form-item label="销户原因">
                    <el-select style="width: 100%;" placeholder="请选择" v-model="form.carzl15">
                    	<el-option v-for="(v,i) in item3" :value="v.value" :key="i" :label="v.text">{{v.text}}</el-option>
                    </el-select>
                </el-form-item>
            </el-col>
            <el-col :span="8">
                <el-form-item label="发动机号">
                    <el-input v-model="form.carzl16" ></el-input>
                </el-form-item>
            </el-col>
        </el-row>
        <el-row>
            <el-col :span="24">
                <el-button type="primary" style="margin-left:10px;">搜索</el-button>
                <el-button type="primary">导出Excel</el-button>
            </el-col>
        </el-row>
    </el-form>
    <div class="public-title" style="margin-top: 20px;">车辆销户查询结果列表</div>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="车牌号" fixed="left" prop="a1">
            </el-table-column>
            <el-table-column
                label="原车号" prop="a2">
            </el-table-column>
            <el-table-column
                label="单位名称" prop="a3">
            </el-table-column>
            <el-table-column
                label="车辆性质" prop="a4">
            </el-table-column>
            <el-table-column
                label="车辆来源" prop="a5">
            </el-table-column>
            <el-table-column
                label="车辆类型" prop="a6">
            </el-table-column>
            <el-table-column
                label="车主姓名" prop="a7">
            </el-table-column>
            <el-table-column
                label="销户日期" prop="a8">
            </el-table-column>
            <el-table-column
                label="上户日期" prop="a9">
            </el-table-column>
            <el-table-column
                label="销户原因" prop="a10">
            </el-table-column>
            <el-table-column
                label="车辆去处" prop="a11">
            </el-table-column>
            <el-table-column
                label="经营期限" prop="a12">
            </el-table-column>
        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
</div>
</template>

<script>
export default {
    data(){
        return {
              form:{
                  carzl1:'',
                  carzl2:'',
                  carzl3:'',
                  carzl4:'',
                  carzl5:'',
                  carzl6:'',
                  carzl7:'',
                  carzl8:'',
                  carzl9:'',
                  carzl10:'',
                  carzl11:'',
                  carzl12:'',
                  carzl13:'',
                  carzl14:'',
                  carzl15:'',
                  carzl16:'',
              },
              tabledata:[
                {
                    a1: '陕A23498',
                    a2: '陕A12378',
                    a3: '奥迪',
                    a4: '集体',
                    a5: '4S店购买',
                    a6: 'SUV',
                    a7: '王宁国',
                    a8: '2018-10-10',
                    a9: '2016-10-10',
                    a10: '出国',
                    a11: '济南',
                    a12: '2年',
                },
                {
                    a1: '陕A12355',
                    a2: '陕A54312',
                    a3: '奔驰',
                    a4: '集体',
                    a5: '4S店购买',
                    a6: 'SUV',
                    a7: '丁建国',
                    a8: '2018-10-10',
                    a9: '2016-10-10',
                    a10: '出国',
                    a11: '济南',
                    a12: '2年',
                },
                {
                    a1: '陕A56734',
                    a2: '陕A34521',
                    a3: '宝马',
                    a4: '集体',
                    a5: '4S店购买',
                    a6: 'SUV',
                    a7: '于立国',
                    a8: '2018-10-10',
                    a9: '2016-10-10',
                    a10: '出国',
                    a11: '济南',
                    a12: '2年',
                },
              ],
              page:{
                now:1,
                pagesize:10,
                sizes:[2,10, 20, 50, 100],
                total:0,
                key:''
              },
              item:[
              	{text:'日产',value:'0'},
              	{text:'丰田',value:'1'},
              	{text:'本田',value:'2'},
              ],
              item1:[
              	{text:'TY2000B',value:'0'},
              	{text:'TXN08S',value:'1'},
              	{text:'TXN-10',value:'2'},
                {text:'XDJ-G9',value:'3'},
                {text:'XDJ-D6',value:'4'},
                {text:'XDJ-G6',value:'5'},
              ],
              item2:[
              	{text:'集体',value:'0'},
              	{text:'个体',value:'1'},
              ],
              item3:[
              	{text:'正常',value:'0'},
              	{text:'报废',value:'1'},
              	{text:'被盗',value:'2'},
                {text:'终止',value:'3'},
              ],
        }
    },
    methods:{
        search(){
            alert("search")
        },
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .el-form-item .el-form-item__label{ width: 90px !important;}
  .el-form-item .el-form-item__content{ margin-left: 90px !important;}
.public-common .el-form-item .el-input{ width: 100%;}
.public-title{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}

</style>
